package com.dmx.platform.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TFinancial entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_financial")
public class TFinancial implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer baseId;
	private Integer orderId;
	private Integer orderPrice;
	private Double brokerage;
	private Date recordTime;

	// Constructors

	/** default constructor */
	public TFinancial() {
	}

	/** full constructor */
	public TFinancial(Integer baseId, Integer orderId, Integer orderPrice,
			Double brokerage, Date recordTime) {
		this.baseId = baseId;
		this.orderId = orderId;
		this.orderPrice = orderPrice;
		this.brokerage = brokerage;
		this.recordTime = recordTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "base_id")
	public Integer getBaseId() {
		return this.baseId;
	}

	public void setBaseId(Integer baseId) {
		this.baseId = baseId;
	}

	@Column(name = "order_id")
	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Column(name = "order_price")
	public Integer getOrderPrice() {
		return this.orderPrice;
	}

	public void setOrderPrice(Integer orderPrice) {
		this.orderPrice = orderPrice;
	}

	@Column(name = "brokerage", precision = 5)
	public Double getBrokerage() {
		return this.brokerage;
	}

	public void setBrokerage(Double brokerage) {
		this.brokerage = brokerage;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "record_time", length = 0)
	public Date getRecordTime() {
		return this.recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

}